﻿<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="WebUserDetailControl.ascx.vb" Inherits="SISSAT.WebDevelopment.Shared.UserControls.WebUserDetailControl" %>
<div class="input">
	<div class="label">
        <asp:RequiredFieldValidator ID="UsernameRequiredFieldValidator" runat="server" 
                                    Display="Static"
                                    ErrorMessage="*" 
                                    ControlToValidate="UsernameTextBox" 
                                    ValidationGroup="WebUserDetailControlGroup"
                                    CssClass="error" />
        Username</div>
	<div class="data"><asp:TextBox ID="UsernameTextBox" runat="server" CssClass="textbox readonly" ReadOnly="True" /></div>
</div>
<div class="input">
	<div class="label">
        <asp:RequiredFieldValidator ID="PasswordRequiredFieldValidator" runat="server" 
                                    Display="Static"
                                    ErrorMessage="*" 
                                    ControlToValidate="PasswordTextBox" 
                                    ValidationGroup="WebUserDetailControlGroup"
                                    CssClass="error" />
        <%=PasswordLabel %></div>
	<div class="data"><asp:TextBox ID="PasswordTextBox" runat="server" CssClass="textbox readonly" ReadOnly="True" TextMode="Password" /></div>
</div>
<asp:MultiView ID="ButtonViews" runat="server" ActiveViewIndex="0">
    <asp:View ID="DefaultButtonView" runat="server"></asp:View>
    <asp:View ID="NewButtonView" runat="server">
        <div class="input">
	        <div class="label">
                <asp:RequiredFieldValidator ID="PasswordNewConfirmRequiredFieldValidator" runat="server" 
                                            Display="Static"
                                            ErrorMessage="*" 
                                            ControlToValidate="PasswordNewConfirmTextbox" 
                                            ValidationGroup="WebUserDetailControlGroup"
                                            CssClass="error" />
                Retype Password</div>
	        <div class="data">
                <asp:TextBox ID="PasswordNewConfirmTextbox" runat="server" CssClass="textbox req" TextMode="Password" />
                <asp:CompareValidator ID="PasswordNewConfirmCompareValidator" runat="server" 
                                      ErrorMessage="*" 
                                      ControlToCompare="PasswordTextbox" 
                                      ControlToValidate="PasswordNewConfirmTextbox" 
                                      ValidationGroup="WebUserDetailControlGroup" 
                                      CssClass="error" />
            </div>
        </div>
        <div class="input">
            <div class="label"></div>
            <div class="data">
                <div class="error"><%=ErrorMessage%></div>
                <div class="buttons">
	                <asp:Button ID="NewButton" runat="server" CssClass="button" Text="Save Changes" ToolTip="Save Changes" ValidationGroup="WebUserDetailControlGroup" />
                    <asp:Button ID="NewClearButton" runat="server" CssClass="button" Text="Clear" ToolTip="Clear" />
                </div>
            </div>
        </div>
    </asp:View>
    <asp:View ID="UpdateButtonView" runat="server">
        <div class="input">
	        <div class="label">
                <asp:RequiredFieldValidator ID="PasswordNewRequiredFieldValidator" runat="server" 
                                            Display="Static"
                                            ErrorMessage="*" 
                                            ControlToValidate="PasswordNewTextbox" 
                                            ValidationGroup="WebUserDetailControlGroup"
                                            CssClass="error" />
                New Password</div>
	        <div class="data"><asp:TextBox ID="PasswordNewTextbox" runat="server" CssClass="textbox req" TextMode="Password" /></div>
        </div>
        <div class="input">
	        <div class="label">
                <asp:RequiredFieldValidator ID="PasswordUpdateConfirmRequiredFieldValidator" runat="server" 
                                            Display="Static"
                                            ErrorMessage="*" 
                                            ControlToValidate="PasswordUpdateConfirmTextbox" 
                                            ValidationGroup="WebUserDetailControlGroup"
                                            CssClass="error" />
                Retype Password</div>
	        <div class="data">
                <asp:TextBox ID="PasswordUpdateConfirmTextbox" runat="server" CssClass="textbox req" TextMode="Password" />
                <asp:CompareValidator ID="PasswordUpdateConfirmCompareValidator" runat="server" 
                                      ErrorMessage="*" 
                                      ControlToCompare="PasswordNewTextbox" 
                                      ControlToValidate="PasswordUpdateConfirmTextbox" 
                                      ValidationGroup="WebUserDetailControlGroup" 
                                      CssClass="error" />
            </div>
        </div>
        <div class="input">
            <div class="label"></div>
            <div class="data">
                <div class="error"><%=ErrorMessage%></div>
                <div class="buttons">
	                <asp:Button ID="UpdateButton" runat="server" CssClass="button" Text="Save Changes" ToolTip="Save Changes" ValidationGroup="WebUserDetailControlGroup" />
                    <asp:Button ID="UpdateClearButton" runat="server" CssClass="button" Text="Clear" ToolTip="Clear" />
                </div>
            </div>
        </div>
    </asp:View>
</asp:MultiView>

